import service,{ baseURL } from './index';
import { ICoSeDeleteParams, ICoSelectedParams, ICoSePageParams } from '../type';

export const coSelection = {
  fileExportUrl: `${baseURL}/coSelection/fileExport`,
  findPage: (data: ICoSePageParams) => {
    return service({
      url: `/coSelection/findPage`,
      method: 'post',
      data,
    });
  },
  save: (data: ICoSelectedParams) => {
    return service({
      url: `/coSelection/save`,
      method: 'post',
      data,
    });
  },
  delete: (data: ICoSeDeleteParams) => {
    return service({
      url: `/coSelection/deleteByIds`,
      method: 'delete',
      data,
    });
  },
}